<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>比赛信息</h2>
        <div>【<eq name="contest.isready" value="2">进行中</eq><eq name="contest.isready" value="1">未开始</eq><eq name="contest.isready" value="0">已结束</eq>】</div> 
    </div>
     
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">比赛名称：{$contest.book_game_name}</label>
		    <label class="item-label">比赛班级：{$contest.class_names}</label>
		    <eq name="contest.isready" value="2">
		    <label class="item-label">开始时间：{$contest.start_time|time_format}</label>
		    </eq>
		    
  			<eq name="contest.isready" value="0">
  			<label class="item-label">开始时间：{$contest.start_time|time_format}</label>
  			<label class="item-label">结束时间：{$contest.end_time|time_format}</label>
  			</eq>
		    
		    <div class="data-table table-striped" style="width:50%">
	<table class="">
    <thead>
        <tr>
		<th class="">序号</th>
		<th class="">图书名称</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
			<td>{$key+1} </td>
			<td><a href="{:U('Contest/getBookDetail?bookid='.$vo['id'])}" class="authorize">{$vo.bookname}</a></td>
		</tr>
		</volist>
		<else/>
		<td colspan="4" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
        </div>
        <div class="form-item">
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Contest/index)}');
</script>
</block>
